package com.zcloud.eventstudydemo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zcloud.eventstudydemo.entity.MilitaryDictionary;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MilitaryDictionaryMapper extends BaseMapper<MilitaryDictionary> {
    /**
     * 根据父级ID查询子节点列表
     * @param parentId 父级ID
     * @return 子节点列表
     */
    List<MilitaryDictionary> selectByParentId(Integer parentId);
    
    /**
     * 根据层级查询节点列表
     * @param level 层级
     * @return 节点列表
     */
    List<MilitaryDictionary> selectByLevel(Integer level);
}